package accs;

import java.awt.EventQueue;

import javax.swing.UIManager;

import accs.gui.MainFrame;
import accs.gui.SplashScreen;
import accs.gui.SplashScreen.SplashListener;

public class Launcher {
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
				} catch(Exception e) {
					System.out.println(e);
				}
				
				try {
					SplashScreen.showSplashScreen("/accs/gui/img/startup.png",1000,new SplashListener() {
						public void finished() {
							try {					
								MainFrame frame = new MainFrame();
								frame.setVisible(true);
							} catch (Exception e) {
								e.printStackTrace();
							}
						}
					});
				} catch(Exception e) {
					System.out.println(e);
				}
			}
		});
	}
}